import request from '@/utils/request'

export function getWarehouse(data) {
  return request({
    url: '/warehouse/list',
    data
  })
}
export function getArea() {
  return request({
    url: '/area/list'
  })
}
export function getLocation() {
  return request({
    url: '/location/list'
  })
}

// 修改
export function changeLocation(data) {
  return request({
    url: '/area',
    data
  })
}

// 删除
export function delLocation(ids) {
  return request({
    // url: `/area${id}`
    url: `/area`,
    ids
  })
}

